package com.job.springsea.work0705;

/**
 * @author 于春海
 * @version 1.0
 * @since 2022-07-07 13:39:58
 */
public class Circle01 {
    public static void main(String[] args) {
        int rooster=0,hen=0,chick;
        for(rooster=0;rooster<=33;rooster++){
            for(hen=0;hen<=20;hen++){
                chick=100-rooster-hen;
                if(rooster*3+hen*5+chick*1.0/3==100)
                {
                    System.out.println("公鸡"+rooster+"只,母鸡"+hen+"只,小鸡"+chick+"只!");
                }
            }
        }
    }
}